/*
 * EventFrame.java
 * Team qq 2011
 */
package com.google.code.timetrail.gui;

import javax.swing.JFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.LayoutStyle.ComponentPlacement;

public class EventFrame extends JFrame {
	public EventFrame(EventFrameBackend eventFrameBackend) {
		

		
		JLabel eventPicture = new JLabel("PICTURE REFLECTING EVENT GOES HERE");
		
		JLabel lblBigJlabelDescribing = new JLabel(eventFrameBackend.getMessage());
		GroupLayout groupLayout = new GroupLayout(getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap(159, Short.MAX_VALUE)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()

							.addGap(185))
						.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()
							.addComponent(eventPicture)
							.addGap(120))))
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(50)
					.addComponent(lblBigJlabelDescribing, GroupLayout.PREFERRED_SIZE, 352, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(319, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(69)

					.addGap(69)
					.addComponent(eventPicture)
					.addGap(28)
					.addComponent(lblBigJlabelDescribing, GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE)
					.addGap(21))
		);
		getContentPane().setLayout(groupLayout);
	}

}
